import { POST, GET } from "../axios/request.js";
export const postDemo = (data) => POST("", data);
// 登录
export const UserLogin = (data) => POST("/tiequan/login", data);
// 获取首页信息
export const GetHomeConfig = (data) => GET("/tiequan/home/getHome", data);
// 设置首页信息
export const SetHomeConfig = (data) => POST("/tiequan/home/setHome", data);
// 获取用户信息
export const GetUserList = (data) => POST("/tiequan/userList", data); 

// 获取菜单列表
export const GetMenuList = (data) => GET("/tiequan/getMenu", data);
// 新建菜单
export const CreateMenuReq = (data) => POST("/tiequan/setMenu", data);
// 删除菜单
export const DeletMenuReq = (data) => GET("/tiequan/delMenu", data);

// 获取商品列表
export const GetGoodsList = (data) => GET("/tiequan/getProduce", data);
// 创建商品
export const CreateGoods = (data) => POST("/tiequan/setProduce", data);
// 删除标签
export const DeletGoodsReq = (data) => GET("/tiequan/delProduce", data);

// 获取标签列表
export const GetTagList = (data) => GET("/tiequan/getTag", data);
// 新建标签
export const CreateTagReq = (data) => POST("/tiequan/setTag", data);
// 删除标签
export const DeletTagReq = (data) => GET("/tiequan/delTag", data);

// 获取积分商品列表
export const GetScoreGoodsReq = (data) => GET("/tiequan/getScore", data);
// 创建积分商品  
export const CreateScoreGoodsReq = (data) => POST("/tiequan/setScore", data); 
// 删除积分商品
export const DeletScoreGoodsReq = (data) => GET("/tiequan/delScore", data);

// 获取订单列表
export const GetAllOrderReq  = (data) => GET("/tiequan/getAllOrderForm",data)




